package com.heima.behavior.controller.v1;

import com.heima.behavior.service.ApLikesBehaviorService;
import com.heima.model.behavior.dtos.LikesBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/api/v1/likes_behavior")
@RequiredArgsConstructor
public class ApLikesBehaviorController {

    private final ApLikesBehaviorService apLikesBehaviorService;

    @PostMapping
    public ResponseResult likesBehavior(@RequestBody LikesBehaviorDto dto) {
        return apLikesBehaviorService.likesBehavior(dto);
    }
}
